package lesson01;

import java.io.*;

public class Demo0110 {
    public static void main(String[] args) throws IOException {
        File file=new File("./TestWriter.txt");
        FileOutputStream fileOutputStream=new FileOutputStream(file);
        PrintWriter printWriter=new PrintWriter(fileOutputStream);
        printWriter.println("哈哈哈哈");
        printWriter.println("嘿嘿嘿");
        printWriter.close();
        fileOutputStream.close();
    }
}
